<?php
declare (strict_types=1);

use think\facade\Route;

Route::group('admin/module/<module_id>/point/', function () {
    // 知识点练习配置
    Route::rule('config', 'config', 'GET|POST');// 新建专项
    Route::post('create', 'create');
    Route::put('edit$', 'edit');// 编辑
    Route::delete('<point_id>/delete', 'delete')->pattern(['point_id' => '\d+']);// 删除
})->prefix('\app\exam\service\admin\ModulePoint@')
    ->middleware('adminRoute')
    ->pattern(['module_id' => '\d+']);